package org.github.xhjcehust.dubbo.proxy.controller;

import cn.htd.center.business.user.dto.*;
import cn.htd.center.business.user.dto.CycleTradeForbiddenMemberDTO;
import cn.htd.center.business.user.dto.MemberBaseDTO;
import cn.htd.center.business.user.dto.MemberBaseInfoDTO;
import cn.htd.center.business.user.dto.MemberBuyerPersonalInfoDTO;
import cn.htd.center.business.user.dto.MemberGroupDTO;
import cn.htd.center.business.user.dto.MemberImportInfoDTO;
import cn.htd.center.business.user.dto.VerifyInfoDTO;
import cn.htd.center.business.user.service.*;
import cn.htd.center.central.member.dto.CusMemberBaseInfoDTO;
import cn.htd.center.central.member.dto.CusMemberIdentityInfoDTO;
import cn.htd.center.central.member.dto.CusMemberIdentityRelationshipDTO;
import cn.htd.center.central.member.dto.CusMemberShipDTO;
import cn.htd.center.central.member.dto.member.CusMemberAddressDTO;
import cn.htd.center.central.member.service.*;
import cn.htd.center.central.user.dto.CusCustomerDTO;
import cn.htd.center.central.user.service.CusCustomerService;
import cn.htd.center.central.user.service.CusUserService;
import cn.htd.common.DataGrid;
import cn.htd.common.ExecuteResult;
import cn.htd.common.Pager;
import cn.htd.framework.common.*;
import cn.htd.membercenter.domain.BoxRelationship;
import cn.htd.membercenter.dto.*;
import cn.htd.membercenter.dto.MemberConsigAddressDTO;
import cn.htd.membercenter.dto.MemberUncheckedDTO;
import cn.htd.membercenter.service.*;
import cn.htd.usercenter.dto.CustomerDTO;
import cn.htd.usercenter.dto.EmployeeDTO;
import cn.htd.usercenter.dto.HTDCompanyDTO;
import cn.htd.usercenter.service.CustomerService;
import cn.htd.usercenter.service.EmployeeService;
import cn.htd.usercenter.service.HTDCompanyService;
import cn.htd.zeus.tc.api.OrderQueryAPI;
import cn.htd.zeus.tc.dto.response.OuterOrderImportResponseDTO;
import cn.htd.zeus.tc.dto.resquest.OuterOrderImportRequestDTO;
import com.alibaba.fastjson.JSONObject;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@RestController
public class TestController {

//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private MemberBaseService memberBaseService;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private CusUserService cusUserService;
//
    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private MemberBaseInfoService memberBaseInfoService;
//
    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private CusMemberBaseInfoService cusMemberBaseInfoService;

    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private CustomerService customerService;

    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private CusCustomerService cusCustomerService;

    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private ConsigneeAddressService consigneeAddressService;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private CusMemberCompanyInfoService cusMemberCompanyInfoService;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private SuperBossService superBossService;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private MemberBuyerService memberBuyerService;
//
    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private MemberBaseInfoApi memberBaseInfoApi;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private MemberGradeApi memberGradeApi;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private MemberInvoiceInfoApi memberInvoiceInfoApi;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private UserApi userApi;
//
    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private MemberConsigneeApi memberConsigneeApi;
//
    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private MemberStatusService memberStatusService;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private MemberBusinessRelationService memberBusinessRelationService;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private WhiteListService whiteListService;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private CusSuperBossService cusSuperBossService;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private HtdCompanyApi htdCompanyApi;
//
    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private BoxRelationshipApi boxRelationshipApi;

    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private BoxRelationshipService boxRelationshipService;
//
    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private MemberGroupApi memberGroupApi;

    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private EmployeeService employeeService;

//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private CycleTradeForbiddenMemberApi cycleTradeForbiddenMemberApi;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private SellerApi sellerApi;

//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private MemberSuperBossService memberSuperBossService;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private HTDCompanyService htdCompanyService;

//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private MemberConsigneeApi memberConsigneeApi;

//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private CusMemberIdentityInfoService cusMemberIdentityInfoService;
//
    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private MemberIdentityApi memberIdentityApi;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private CusMemberIdentityRelationshipService cusMemberIdentityRelationshipService;
//
//    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
//    private VerifyApi verifyApi;

    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private CusVerifyInfoService cusVerifyInfoService;

    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private OrderQueryAPI orderQueryAPI;

    @Reference(version="${dubbo.registry.version}",registry = "${dubbo.registry.address}")
    private UserLoginApi userLoginApi;

//    @Autowired
//    private SecretUtil secretUtil;

    @RequestMapping("/ddd")
    public String ddd(){

//        MemberAttributeDTO dto = new MemberAttributeDTO();
//        dto.setMemberId(280944L);
//        dto.setModifyId(2L);
//        dto.setModifyName("系统管理员");
//        MemberCompanyInfoDTO companyInfoDTO = new MemberCompanyInfoDTO();
//        companyInfoDTO.setCompanyName("江苏移动定淮门营业厅1115");
////        companyInfoDTO.setArtificialPersonName("非铁军注册会员0682");
////        companyInfoDTO.setArtificialPersonMobile("15253644066");
//        MemberInvoiceInfoDTO invoiceInfoDTO = new MemberInvoiceInfoDTO();
//        invoiceInfoDTO.setInvoiceNotify("汇通达网络股份有限公司");
////        invoiceInfoDTO.setBankAccount("12345");
////        invoiceInfoDTO.setTaxManId("12345");
////        invoiceInfoDTO.setContactPhone("12345");
////        invoiceInfoDTO.setInvoiceAddress("12345");
//        dto.setMemberCompanyInfoDTO(companyInfoDTO);
//        dto.setMemberInvoiceInfoDTO(invoiceInfoDTO);
//
//        BaseRequestParam<MemberAttributeDTO> baseRequestParam = new BaseRequestParam<>();
//        baseRequestParam.setBusinessBody(dto);
//        ExecuteResult<Boolean> result = memberBaseInfoApi.modifyMemberBaseInfoDirect(baseRequestParam);

//        List<CusMemberBaseInfoDTO> result = new ArrayList<>();
//        CusMemberBaseInfoDTO dto = new CusMemberBaseInfoDTO();
//        dto.setArtificialPersonMobile("111111111111");
//        dto.setArtificialPersonIdcard("22222222222");
//        result.add(dto);
//        secretUtil.decryptList(result);


//        String json = "{\"memberBaseInfoDTO\":{\"accountLicence\":\"/20201229/bPthafs7pX.jpeg\",\"industryCategory\":\"3\",\"remark\":\"537033.10\"},\"memberCode\":\"htd20174070\",\n" +
//                "\"memberCompanyInfoDTO\":{\"actualBusinessCity\":\"3703\",\"actualBusinessCounty\":\"370303\",\"actualBusinessDetail\":\"山东省淄博市张店区金晶大道潘庄朝阳街8-14号\",\n" +
//                "\"actualBusinessProvince\":\"37\",\"actualBusinessTown\":\"370303005\",\"artificialPersonIdcard\":\"220621197912260241\",\"artificialPersonName\":\"王洪艳\",\n" +
//                "\"artificialPersonPicBackSrc\":\"/20181226/img/29da81dab93b4b1c989123a1f8f6eef9.jpg\",\"artificialPersonPicSrc\":\"/20181226/img/03ba0702e36340859d020de46c1c7542.jpg\",\n" +
//                "\"businessPersonMobile\":\"13864412818\",\"businessPersonName\":\"王洪艳\",\"companyName\":\"淄博旭方商贸有限公司\",\"locationCity\":\"3703\",\"locationCounty\":\"370303\",\n" +
//                "\"locationDetail\":\"山东省淄博市张店区金晶大道潘庄朝阳街8-14号\",\"locationProvince\":\"37\",\"locationTown\":\"370303005\",\n" +
//                "\"memberCompanyPicture\":{1:[{\"pictureUrl\":\"/20181226/img/0e02309f3afd48b78383f5de8756b931.jpg\"}],2:[{\"pictureUrl\":\"/20181226/img/0b5fec22dfd0460e81d4c34837ae86d2.jpg\"}]},\n" +
//                "\"modifyTime\":\"\",\"shortCompanyName\":\"淄博旭方商贸有限公司\",\"storeFlag\":1,\"storeInsidePicSrc\":\"/20181226/img/0e02309f3afd48b78383f5de8756b931.jpg;\",\n" +
//                "\"storeOutsidePicSrc\":\"/20181226/img/0b5fec22dfd0460e81d4c34837ae86d2.jpg\",\"storePosition\":\"城郊店\"},\"memberId\":224733,\n" +
//                "\"memberLicenceDTO\":{\"businessLicenseCertificatePicSrc\":\"\",\"buyerBusinessLicenseId\":\"91370303MA3EKJPK9G\",\n" +
//                "\"buyerBusinessLicensePicSrc\":\"/20181226/img/519827909037498bbc4e0b1b295c8154.jpg\",\"buyerGuaranteeLicensePicSrc\":\"\"},\"modifyId\":224733,\n" +
//                "\"modifyName\":\"淄博旭方商贸有限公司\"}";
//        MemberAttributeDTO dto = JSONObject.parseObject(json,MemberAttributeDTO.class);
//        ExecuteResult<Long> result = memberBuyerService.ApplyModifyMemberBaseInfo(dto);


//        List<MemberBusinessRelationDTO> list = new ArrayList<>();
//        MemberBusinessRelationDTO dto = new MemberBusinessRelationDTO();
//        dto.setBuyerId("25968");
//        dto.setSellerId("3065");
//        dto.setCategoryId(66074);
//        dto.setBrandId(1);
//        dto.setOperateId("0");
//        dto.setOperateName("sys");
//        dto.setCustomerManagerId("80589999");
//        list.add(dto);
//        ExecuteResult<Boolean> result = memberBusinessRelationService.insertMemberBusinessRelationInfo(list);

//        ExecuteResult<DataGrid<MemberShipDTO>> result = superBossService.selectMemberShip2("2021-01-01","2021-01-02",new Pager(),1);

//        cn.htd.framework.common.ExecuteResult<List<CusMemberShipDTO>> result = cusSuperBossService.searchMemberShip2("2021-01-01","2021-01-02",new BasePager(),null,1);

//        BaseRequestParam<HTDCompanyDTO> baseRequestParam = new BaseRequestParam<>();
//        HTDCompanyDTO dto = new HTDCompanyDTO();
//        dto.setCompanyId("0101");
//        baseRequestParam.setBusinessBody(dto);
//        ExecuteResult<List<HTDCompanyDTO>> result = htdCompanyApi.queryHtdCompanyList(baseRequestParam);


//        BasePagerRequestParam<MemberBaseInfoDTO> requestParam = new BasePagerRequestParam<>();
//        MemberBaseInfoDTO dto = new MemberBaseInfoDTO();
//        dto.setTaxManId("91321003060172138W");
//        dto.setBuyerSellerType("1");
//        requestParam.setBusinessBody(dto);
//        requestParam.setBasePager(new BasePager());
//        ExecuteResult<DataGrid<MemberBaseInfoDTO>> result = memberBaseInfoApi.selectMemberBaseInvoiceInfoPage(requestParam);

//        BasePagerRequestParam<MemberBaseDTO> requestParam = new BasePagerRequestParam<>();
//        MemberBaseDTO dto = new MemberBaseDTO();
//        dto.setSellerId("15993");
//        dto.setMemberCode("htd20300663");
//        requestParam.setBusinessBody(dto);
//        requestParam.setBasePager(new BasePager());
//        ExecuteResult<DataGrid<MemberBaseDTO>> result = boxRelationshipApi.selectBoxRelationBuyerListBySellerIdPage2(requestParam);


//        BaseRequestParam<MemberGroupDTO> requestParam = new BaseRequestParam<>();
//        MemberGroupDTO dto = new MemberGroupDTO();
//        dto.setName("测试会员组");
//        dto.setSellerId("91049");
//        dto.setBuyerIds("1,2,4");
//        dto.setGroupType(1);
//        dto.setOperateId("0");
//        dto.setOperateName("ttes1");
//        dto.setComment("test");
//        requestParam.setBusinessBody(dto);
//        ExecuteResult<Long> result = memberGroupApi.insertMemberGroupInfo(requestParam);

//        BaseRequestParam<CycleTradeForbiddenMemberDTO> requestParam = new BaseRequestParam<>();
//        CycleTradeForbiddenMemberDTO cycleTradeForbiddenMemberDTO = new CycleTradeForbiddenMemberDTO();
//        cycleTradeForbiddenMemberDTO.setForbiddenType("2");
//        cycleTradeForbiddenMemberDTO.setMemberCode("htd844172");
//        requestParam.setBusinessBody(cycleTradeForbiddenMemberDTO);
//        ExecuteResult<CycleTradeForbiddenMemberDTO> result = cycleTradeForbiddenMemberApi.queryCycleTradeForbiddenMember(requestParam);
//        BasePagerRequestParam<MemberBaseInfoDTO> requestParam = new BasePagerRequestParam<>();
//        MemberBaseInfoDTO dto = new MemberBaseInfoDTO();
//        dto.setId(360214L);
//        dto.setBuyerSellerType("1");
//        requestParam.setBusinessBody(dto);
//        requestParam.setBasePager(new BasePager());
//        ExecuteResult<MemberBaseInfoDTO> result = memberBaseInfoApi.selectMemberBaseInfoLicence(requestParam);

//        BasePagerRequestParam<ExternalSuppliersDTO> requestParam = new BasePagerRequestParam<>();
//        ExternalSuppliersDTO dto = new ExternalSuppliersDTO();
//        dto.setMemberCode("htd23384564");
//        requestParam.setBusinessBody(dto);
//        requestParam.setBasePager(new BasePager());
//        ExecuteResult<DataGrid<ExternalSuppliersDTO>> result = sellerApi.querySellerInfoListPage(requestParam);


//        BaseRequestParam<MemberGroupDTO> request = new BaseRequestParam<>();
//        MemberGroupDTO dto = new MemberGroupDTO();
//        dto.setGroupIds("1856,1857");
//        dto.setModifyName("test");
//        dto.setModifyId("0");
//        request.setBusinessBody(dto);
//        cn.htd.framework.common.ExecuteResult<Boolean> result = memberGroupApi.deleteMemberGroupInfo(request);

//        BaseRequestParam<MemberGroupDTO> request = new BaseRequestParam<>();
//        MemberGroupDTO dto = new MemberGroupDTO();
//        dto.setName("1904");
//        dto.setGroupId(1904L);
//        dto.setGroupIds("1904");
//        dto.setComment("1904");
//        dto.setGroupType(1);
//        dto.setOperateName("浙江汇恒供应链管理有限公司");
//        dto.setOperateId("17026");
//        dto.setBuyerIds("4,5,4,8");
//        request.setBusinessBody(dto);
//        ExecuteResult<Boolean> result = memberGroupApi.updateMemberGroupInfo(request);


//        BasePagerRequestParam<MemberGroupDTO> request = new BasePagerRequestParam<>();
//        MemberGroupDTO dto = new MemberGroupDTO();
//        dto.setSellerId("91049");
//        dto.setDeleteFlag("0");
//        request.setBusinessBody(dto);
//        request.setBasePager(new BasePager());
//        ExecuteResult<DataGrid<MemberGroupDTO>> result = memberGroupApi.selectCusMemberGroupPage(request);

//        BasePagerRequestParam<MemberBaseDTO> requestParam = new BasePagerRequestParam<>();
//        MemberBaseDTO dto = new MemberBaseDTO();
////        dto.setMemberCode();
//        dto.setSellerId("372015");
////        dto.setCompanyName("明珠测试公司");
////        dto.setMemberCode("htd20268947");
//        List<String> auditList = new ArrayList<>();
//        auditList.add("");
//        auditList.add("1");
////        dto.setAuditStatusList(auditList);
//        requestParam.setBusinessBody(dto);
//        BasePager basePager = new BasePager();
//        basePager.setSize(1000);
//        basePager.setCurrent(1);
//        requestParam.setBasePager(basePager);
//        ExecuteResult<DataGrid<MemberBaseDTO>> result = boxRelationshipApi.selectBoxRelationBuyerListBySellerIdPage(requestParam);

//        String json1 = "{\"callSystem\":\"02\",\"belongType\":\"01\",\"belongCode\":[\"0813\"],\"registStartTime\":\"2021-02-01\",\"registEndTime\":\"2021-02-28\",\"show\":1}";
//        SuperBossSearchDTO dto = JSONObject.parseObject(json1,SuperBossSearchDTO.class);
//        ExecuteResult<DataGrid<SuperBossSearchResultDTO>> result = memberSuperBossService.queryMemberStoreList(dto,new Pager<>());

//        BaseRequestParam<HTDCompanyDTO> requestParam = new BaseRequestParam<>();
//        HTDCompanyDTO dto = new HTDCompanyDTO();
//        dto.setCompanyId("9203");
//        requestParam.setBusinessBody(dto);
//        ExecuteResult<List<HTDCompanyDTO>> result = htdCompanyApi.selectCusHTDCompanyList(requestParam);

//        ExecuteResult<HTDCompanyDTO> result = htdCompanyService.selectBranchCompanyById("8864");

//        BaseRequestParam<MemberBaseInfoDTO> requestParam = new BaseRequestParam<>();
//        MemberBaseInfoDTO dto = new MemberBaseInfoDTO();
//        List<String> memberCodes = new ArrayList<>();
//        memberCodes.add("htd40170504");
//        memberCodes.add("htd123");
//        dto.setMemberCodes(memberCodes);
//        dto.setBuyerSellerType("1");
//        dto.setStatus("1");
//        requestParam.setBusinessBody(dto);
//        ExecuteResult<MemberImportInfoDTO> result = memberBaseInfoApi.checkMemberBaseInfoList(requestParam);

//        BaseRequestParam<UserDTO> requestParam = new BasePagerRequestParam<>();
//        UserDTO dto = new UserDTO();
//        dto.setId(1L);
//        requestParam.setBusinessBody(dto);
//        ExecuteResult<UserDTO> result = userApi.getUser(requestParam);

//        BaseRequestParam<MemberIdentityInfoDTO> requestParam = new BaseRequestParam<>();
//        MemberIdentityInfoDTO dto = new MemberIdentityInfoDTO();
//        dto.setIdentityName("测试身份1");
//        dto.setIdentityContent("测试身份说明1");
//        dto.setCreateId(0);
//        dto.setCreateCode("code");
//        dto.setCreateName("sys");
//        dto.setModifyId(0);
//        dto.setModifyCode("code");
//        dto.setModifyName("sys");
//        requestParam.setBusinessBody(dto);
//        ExecuteResult<Long> result = memberIdentityApi.insertIdentityInfo(requestParam);

//        BasePagerRequestParam<MemberIdentityInfoDTO> requestParam = new BasePagerRequestParam<>();
//        MemberIdentityInfoDTO dto = new MemberIdentityInfoDTO();
//        List<Integer> list = new ArrayList<>();
//        list.add(1);
//        list.add(2);
//        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
//        try {
//            dto.setStartDate(sdf.parse("2021-02-24"));
//            dto.setEndDate(new Date());
//        } catch (ParseException e) {
//            e.printStackTrace();
//        }
//        dto.setIdentityStatusList(list);
//        requestParam.setBusinessBody(dto);
//        requestParam.setBasePager(new BasePager());
//        ExecuteResult<DataGrid<MemberIdentityInfoDTO>> result = memberIdentityApi.selectIdentityInfoPage(requestParam);

//        BaseRequestParam<VerifyInfoDTO> requestParam = new BaseRequestParam<>();
//        VerifyInfoDTO dto = new VerifyInfoDTO();
//        dto.setRecordId(3L);
//        dto.setModifyType("37");
//        requestParam.setBusinessBody(dto);
//        ExecuteResult<VerifyInfoDTO> result = verifyApi.selectVerifyInfo(requestParam);

//        BaseRequestParam<MemberIdentityInfoDTO> requestParam = new BaseRequestParam<>();
//        MemberIdentityInfoDTO dto = new MemberIdentityInfoDTO();
//        dto.setVerifyId(83490L);
//        dto.setVerifyStatus("3");
//        dto.setModifyId(0);
//        dto.setModifyName("sys");
//        requestParam.setBusinessBody(dto);
//        ExecuteResult<Boolean> result = memberIdentityApi.approveIdentityInfo(requestParam);

//        BaseRequestParam<MemberIdentityInfoDTO> requestParam = new BaseRequestParam<>();
//        MemberIdentityInfoDTO dto = new MemberIdentityInfoDTO();
//        dto.setId(15L);
//        //修改
//        dto.setIdentityName("测试身份1");
//        dto.setIdentityContent("测试说明1");
//        dto.setModifyType("38");//38修改 39废弃 40恢复
//
//        //废弃
////        dto.setIdentityStatus(2);
////        dto.setModifyType("39");
//
//        //恢复
////        dto.setIdentityStatus(1);
////        dto.setModifyType("40");
//
//        dto.setCreateId(0);
//        dto.setCreateName("sys");
//        dto.setModifyId(0);
//        dto.setModifyName("sys");
//        requestParam.setBusinessBody(dto);
//        ExecuteResult<Boolean> result = memberIdentityApi.updateIdentityInfo(requestParam);


//        BaseRequestParam<MemberIdentityRelationshipDTO> requestParam = new BaseRequestParam<>();
//        MemberIdentityRelationshipDTO dto = new MemberIdentityRelationshipDTO();
//        dto.setMemberId(4L);
//        dto.setType(1);
//        List<Long> identityIdList = new ArrayList<>();
//        identityIdList.add(1L);
//        identityIdList.add(2L);
//        identityIdList.add(3L);
//        dto.setIdentityIdList(identityIdList);
//        dto.setCreateId(0);
//        dto.setCreateName("sys");
//        dto.setModifyId(0);
//        dto.setModifyName("sys");
//        requestParam.setBusinessBody(dto);
//        ExecuteResult<Boolean> result = memberIdentityApi.insertIdentityRelationInfo(requestParam);


//        BaseRequestParam<MemberIdentityRelationshipDTO> requestParam = new BaseRequestParam<>();
//        MemberIdentityRelationshipDTO dto = new MemberIdentityRelationshipDTO();
//        dto.setVerifyId(83252L);
//        dto.setVerifyStatus("3");
//        dto.setModifyId(0);
//        dto.setModifyCode("08011707");
//        dto.setModifyName("sys");
//        requestParam.setBusinessBody(dto);
//        ExecuteResult<Boolean> result = memberIdentityApi.approveIdentityRelation(requestParam);

//        BaseRequestParam<MemberIdentityRelationshipDTO> requestParam = new BaseRequestParam<>();
//        MemberIdentityRelationshipDTO dto = new MemberIdentityRelationshipDTO();
//        dto.setMemberId(5L);
//        dto.setType(1);
//        List<Long> identityIdList = new ArrayList<>();
//        identityIdList.add(1L);
//        identityIdList.add(2L);
//        identityIdList.add(4L);
//        dto.setIdentityIdList(identityIdList);
//        dto.setCreateId(0);
//        dto.setCreateCode("sys");
//        dto.setCreateName("sys");
//        dto.setModifyId(0);
//        dto.setModifyCode("sys");
//        dto.setModifyName("sys");
//        requestParam.setBusinessBody(dto);
//        ExecuteResult<Boolean> result = memberIdentityApi.updateIdentityRelationInfo(requestParam);

//        BasePagerRequestParam<VerifyInfoDTO> requestParam = new BasePagerRequestParam<>();
//        requestParam.setBasePager(new BasePager());
//        VerifyInfoDTO dto = new VerifyInfoDTO();
//        dto.setRecordId(5L);
//        List<String> list = new ArrayList<>();
//        list.add("37");
//        list.add("38");
//        list.add("39");
//        list.add("40");
//        dto.setModifyTypelist(list);
//        requestParam.setBusinessBody(dto);
//        ExecuteResult<DataGrid<VerifyInfoDTO>> result = verifyApi.selectVerifyInfoPage(requestParam);

//        BasePagerRequestParam<MemberIdentityInfoDTO> requestParam = new BasePagerRequestParam<>();
//        MemberIdentityInfoDTO dto = new MemberIdentityInfoDTO();
//        requestParam.setBusinessBody(dto);
//        requestParam.setBasePager(new BasePager());
//        ExecuteResult<DataGrid<MemberIdentityInfoDTO>> result =
//                memberIdentityApi.selectIdentityInfoVerifyInfoPage(requestParam);

//        BasePagerRequestParam<MemberIdentityRelationshipDTO> requestParam = new BasePagerRequestParam<>();
//        MemberIdentityRelationshipDTO dto = new MemberIdentityRelationshipDTO();
//        dto.setMemberCode("926386");
//        requestParam.setBusinessBody(dto);
//        requestParam.setBasePager(new BasePager());
//        ExecuteResult<DataGrid<MemberIdentityRelationshipDTO>> result = memberIdentityApi.selectIdentityRelationPage(requestParam);

//        ExecuteResult<List<CusMemberIdentityRelationshipDTO>> result =
//                cusMemberIdentityRelationshipService.selectMemberIdentityRelationshipList(new CusMemberIdentityRelationshipDTO(),new BasePager());

//        CusMemberIdentityInfoDTO dto = new CusMemberIdentityInfoDTO();
//        ExecuteResult<List<CusMemberIdentityInfoDTO>> result = cusMemberIdentityInfoService.selectIdentityInfoVerifyInfoList(dto,new BasePager());

//        BasePagerRequestParam<Long> requestParam = new BasePagerRequestParam<>();
//        requestParam.setBusinessBody(281119L);
//        ExecuteResult<MemberBuyerPersonalInfoDTO> result = memberBaseInfoApi.queryBuyerPersonalInfo(requestParam);

//        CustomerDTO customerDTO = new CustomerDTO();
//        customerDTO.setLoginId("htd20319913");
//        customerDTO.setPassword("13785650070");
//        customerDTO.setMobile("13785650070");
//        customerDTO.setName("霸州市王庄子盛禾板厂");
//        customerDTO.setCompanyId(387867L);
//        customerDTO.setDefaultContact(1);
//        customerDTO.setMemberCode("htd20319913");
//        customerDTO.setMemberId(387867L);
//        customerDTO.setSellerLabel("");
//        ExecuteResult<Boolean> result = customerService.addCustomer(customerDTO,1);

//        List<CusCustomerDTO> result = cusCustomerService.isRepeatMobile("13530396593",-1L,1);

//        ExecuteResult<List<CusMemberBaseInfoDTO>> result =
//                cusVerifyInfoService.selectUnMemberCompanyNameVerify(new CusMemberBaseInfoDTO(),"","",new Pager());

//        BasePagerRequestParam<MemberGroupDTO> param = new BasePagerRequestParam<>();
//        param.setBasePager(new BasePager());
//        MemberGroupDTO memberGroupDTO = new MemberGroupDTO();
//        memberGroupDTO.setBuyerId(23223L);
//        param.setBusinessBody(memberGroupDTO);
//        ExecuteResult<List<MemberGroupDTO>> result = memberGroupApi.selectMemberGroupRelationList(param);

//        CusMemberBaseInfoDTO cusMemberBaseInfoDTO = new CusMemberBaseInfoDTO();
//        ExecuteResult<List<CusMemberBaseInfoDTO>> result = cusVerifyInfoService.selectMemberModifyVerify(cusMemberBaseInfoDTO,new Pager());

//        ExecuteResult<DataGrid<BoxRelationship>> result = boxRelationshipService.selectBoxDistributionRelationListByMemberId(27825L);

//        MemberUncheckedDTO memberUncheckedDTO = new MemberUncheckedDTO();
//        memberUncheckedDTO.setMember_type("1");
//        ExecuteResult<DataGrid<MemberUncheckedDTO>> result = memberStatusService.queryNonMemberToMemberList(new Pager(),memberUncheckedDTO);

//        BasePagerRequestParam<Long> requestParam = new BasePagerRequestParam<>();
//        requestParam.setBusinessBody(374343L);
//        requestParam.setBasePager(new BasePager());
//        cn.htd.framework.common.ExecuteResult<DataGrid<MemberConsigAddressDTO>> result = memberConsigneeApi.selectConsigAddressIds(requestParam);

//        MemberBaseInfoDTO memberBaseInfoDTO = new MemberBaseInfoDTO();
//        memberBaseInfoDTO.setIsCustomerAreaCodeNull(true);
//        memberBaseInfoDTO.setCurBelongSellerId(17026L);
//        memberBaseInfoDTO.setCustomerAreaCode("03060206");
//        memberBaseInfoDTO.setBuyerSellerType("1");
//        BasePagerRequestParam<MemberBaseInfoDTO> requestParam = new BasePagerRequestParam<>();
//        requestParam.setBasePager(new BasePager());
//        requestParam.setBusinessBody(memberBaseInfoDTO);
//        ExecuteResult<List<MemberBaseInfoDTO>> result = memberBaseInfoApi.selectMemberBaseInfoListNoSecret(requestParam);

//        MemberBaseInfoDTO memberBaseInfoDTO = new MemberBaseInfoDTO();
//        memberBaseInfoDTO.setId(27825L);
//        memberBaseInfoDTO.setCustomerAreaCode("");
//        BaseRequestParam<MemberBaseInfoDTO> requestParam = new BaseRequestParam<>();
//        requestParam.setBusinessBody(memberBaseInfoDTO);
//        ExecuteResult<Boolean> result = memberBaseInfoApi.clearMemberBaseInfo(requestParam);

//        ExecuteResult<List<MemberConsigAddressDTO>> result =
//                consigneeAddressService.selectAddressCityList(135063L,"4201","42","default_flag desc,modify_time desc");


//        List<OuterOrderImportRequestDTO> list = new ArrayList<>();
//        OuterOrderImportRequestDTO dto1 = new OuterOrderImportRequestDTO();
//        dto1.setOriginalOrderNo("535266945291477844");
//        dto1.setConsigneeAddress("江苏 南京 鼓楼 高教新村");
//        dto1.setReceiverName("t1");
//        dto1.setContactPhone("13000110001");
//        dto1.setWarehouseType(1);
//        dto1.setRegularOrder(true);
//        OuterOrderImportRequestDTO dto2 = new OuterOrderImportRequestDTO();
//        dto2.setOriginalOrderNo("535767458555477844");
//        dto2.setConsigneeAddress("江苏省 南京 玄武区 test1");
//        dto2.setReceiverName("t2");
//        dto2.setContactPhone("13000110002");
//        dto2.setWarehouseType(2);
//        dto2.setRegularOrder(true);
//        OuterOrderImportRequestDTO dto3 = new OuterOrderImportRequestDTO();
//        dto3.setOriginalOrderNo("536085859909477899");
//        dto3.setConsigneeAddress("江苏 南京市 鼓楼区 test2");
//        dto3.setReceiverName("t3");
//        dto3.setContactPhone("13000110003");
//        dto3.setWarehouseType(1);
//        dto3.setRegularOrder(true);
//        OuterOrderImportRequestDTO dto4 = new OuterOrderImportRequestDTO();
//        dto4.setOriginalOrderNo("535846306452477844");
//        dto4.setConsigneeAddress("江苏 南京 江宁 test4");
//        dto4.setReceiverName("t4");
//        dto4.setContactPhone("13000110004");
//        dto4.setWarehouseType(2);
//        dto4.setRegularOrder(false);
//        OuterOrderImportRequestDTO dto5 = new OuterOrderImportRequestDTO();
//        dto5.setOriginalOrderNo("535884674535704061");
//        dto5.setConsigneeAddress("江苏 南京 栖霞 test5");
//        dto5.setReceiverName("t5");
//        dto5.setContactPhone("13000110005");
//        dto5.setWarehouseType(2);
//        list.add(dto1);
//        list.add(dto2);
//        list.add(dto3);
//        list.add(dto4);
//        list.add(dto5);
//        cn.htd.common.ExecuteResult<OuterOrderImportResponseDTO> result =
//                orderQueryAPI.batchUpdateOuterOrderInfo(list);

//        EmployeeDTO employeeDTO = new EmployeeDTO();
//        employeeDTO.setRoleId(72L);
//        ExecuteResult<DataGrid<EmployeeDTO>> result = employeeService.selectEmployeeRolePage(employeeDTO,null);

        String result = memberBaseInfoService.getManagerName("17026","03069999");

        return JSONObject.toJSONString(result);
    }
}
